<%--
  Created by IntelliJ IDEA.
  User: 19416
  Date: 2022-08-10
  Time: 16:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="https://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<form action="${pageContext.request.contextPath}/ProductUpdateServlet" method="get">
    <p>
        商品名称: <input type="text" name="id" value="${requestScope.product.id}">
    </p>
    <p>
        商品名称: <input type="text" name="product_name" value="${requestScope.product.product_name}">
    </p>
    <p>
        商品价格: <input type="text" name="product_price" value="${requestScope.product.product_price}">
    </p>
    <p>
        商品描述: <input type="text" name="product_desc" value="${requestScope.product.product_desc}">
    </p>
    <p>
        商品状态: <input type="text" name="flag" id="flag" value="${requestScope.product.flag}">
    </p>

    <p>
        <input type="submit" value="提交" id="btn">
    </p>
</form>
<script>
    $("#btn").click(function (){
        var sf = confirm("确定要修改吗？");
        if (sf == true){
            return true;
        }
    })
</script>
</body>
</html>
